.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* 改用 min-height */
  width: 100vw;
  /* 添加背景图 */
  background-image: url('/img/login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed; /* 固定位置 */
  top: 0;
  left: 0;
}

.login-box {
  width: 350px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* 确保登录框不会太高 */
  max-height: 90vh;
  overflow-y: auto; /* 如果内容过多，只在登录框内滚动 */
}

.login-box h2 {
  text-align: center;
  margin-bottom: 24px;
}

/* 适配小屏幕 */
@media screen and (max-height: 600px) {
  .login-box {
    padding: 20px;
    margin: 20px;
  }

  .login-box h2 {
    margin-bottom: 16px;
  }
}
